package com.bbtShop.core.model;

public enum ResultCode {
    // 操作成功标识
    SUCCESS(200, "Success"),
    // 系统异常标识
    SYS_ERROR(500, "当前网络不稳定，请稍后重试"),
    PRODUCT_NOT_ALLOW(10001, "输入日期已经添加了"),
    PRODUCT_NUM_ERROR(10002, "超出总产量，请检查数量是否正确"),
    PASSWORD_ERROR(10003, "账号密码不正确"),
    ACCOUNT_ERROR(10004, "账号不存在"),
    LOGIN_PAST(10005,"账号登录过期，请重新登录"),
    NO_PERMISSION(10006,"对不起,您暂无此操作权限")
    ;

    public Integer code;
    public String message;

    public String getCodeS() {
        return codeS;
    }

    public String codeS;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    ResultCode(String codeS, String message) {
        this.codeS = codeS;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
